package p.ithorns.tools.translator.annotation.field;

import org.springframework.core.annotation.AliasFor;
import p.ithorns.tools.translator.annotation.Translatable;

import java.lang.annotation.*;

/**
 * MapField
 *
 * @author Ht.L
 * @date 2024-05-25 22:36
 * @since 1.0.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Target({ElementType.FIELD})
@Translatable
public @interface MapField {

    @AliasFor(annotation = Translatable.class)
    String from() default "";

    String[] map();

}